package com.modeler.single_flowable_modeler;

import org.flowable.ui.modeler.properties.FlowableModelerAppProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(
        exclude = {
                // 取消security安全自动配置类
                SecurityAutoConfiguration.class,
                // 取消security自动装配类
                UserDetailsServiceAutoConfiguration.class
        }
)
@ComponentScan(basePackages = {
        // 扫描flowable提供接口所在包
        "org.flowable.ui",
        // 扫描自己项目所在包
        "com.modeler.single_flowable_modeler"
})
@EnableConfigurationProperties({FlowableModelerAppProperties.class})
public class SingleFlowableModelerApplication {
    public static void main(String[] args) {
        SpringApplication.run(SingleFlowableModelerApplication.class, args);
    }

}
